-- GENERATED SPELL FOR [Alanura Firecloud] --


function spell0_30239(pUnit, Event) --@Fiery Intellect,Self--
pUnit:FullCastSpellOnTarget(35917,pUnit)
pUnit:RegisterEvent('Sorts_30239', 568, 1)
end

function Sorts_30239(pUnit, Event)
local choix_sorts_30239 = math.random(0, 0)
if choix_sorts_30239 == 0 then
pUnit:RegisterEvent('spell0_30239', 1, 1)
end
end

function mob30239_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30239', math.random(1500, 3000), 1)
end

function mob30239_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30239_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30239_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30239, 1, 'mob30239_Action')
RegisterUnitEvent(30239, 2, 'mob30239_Leave')
RegisterUnitEvent(30239, 3, 'mob30239_Kill')
RegisterUnitEvent(30239, 4, 'mob30239_Die')
